<template>
 <div class="common-layout">
    <el-container>
      <Aside width="230px"></Aside>
      <el-container>
        <!-- 引进外部ui的时候一定要注意自己写vue组件的来替换的时候不要丢了原来的样式 -->
        <el-header><Header/></el-header>
        <el-main>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script setup name="main">
// eslint-disable-next-line
 import Aside from '../components/aside.vue'
 import Header from '../components/navHeader.vue'
</script>

<style lang="less" scoped>
 .common-layout {
  height: 100%;
  //这是less的语法,可以进行嵌套进行样式的设置
  .el-container {
    height: 100%;
  }
 }
</style>